package kk.utils;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * 密码加密工具类
 */
public class PasswordUtils {
    private static BCryptPasswordEncoder bCryptPasswordEncoder=new BCryptPasswordEncoder();

    /**
     * 给密码加密
     * @param password
     * @return
     */
    public static String EncodePassword(String password){
        String encodePassword = bCryptPasswordEncoder.encode(password);
        return encodePassword;
    }
}
